package com.pig.serviceimpl;

import com.pig.entity.AccountUserEntity;
import com.pig.mapper.AccountInfoMapper;
import com.pig.mapper.AfficheMapper;
import com.pig.pojo.AccounInfoPojo;
import com.pig.service.AccountInfoService;
import com.pig.service.AfficheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 31218
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AccountInfoImpl implements AccountInfoService {

	@Autowired
	private AccountInfoMapper accountInfoMapper;

	/**
	 * 查询用户信息
	 * @param map
	 * @return
	 */
	@Override
	public AccounInfoPojo queryAccountInfo(Map<String, Object> map) {
		return accountInfoMapper.queryAccountInfo(map);
	}

	/**
	 * 修改用户性别或者生日
	 */
	@Override
	public int updateAccountInfoBirthday(Map<String, Object> map) {
		return accountInfoMapper.updateAccountInfoBirthday(map);
	}
}
